<!DOCTYPE html>
<html class="javascript js cssanimations">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>72公社</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta name="apple-mobile-web-app-title" content="72公社">
    <meta name="format-detection" content="telephone=no">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="browsermode" content="application">
    <meta name="x5-page-mode" content="app">
    <meta name="x5-fullscreen" content="true">
    <link rel="stylesheet" href="../../css/amaze.min.css" />
    <link rel="stylesheet" href="../../css/amazeui.min.css" />
    <link rel="stylesheet" href="../../css/app.css">
    <!--[if (gte IE 9)|!(IE)]>
        <!-->
    <script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
    <!--<![endif]-->
    <!--[if lt IE 9]>
            <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js">
                
            </script><script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js">
                
            </script><script src="http://a.static.amazeui.org/assets/2.x/js/polyfill/rem.min.js">
                
            </script><script src="http://a.static.amazeui.org/assets/2.x/js/polyfill/respond.min.js">
                
            </script><script src="http://a.static.amazeui.org/assets/2.x/js/amazeui.legacy.js">
                
            </script>
        <![endif]-->
    <script src="../../script/amazeui.min.js"></script>
    <style type="text/css">
    /*头部背景*/
    
    .am-header-default {
        background-color: #f40;
    }
    /*分类样式*/
    
    .am-menu-dropdown1 .am-menu-nav>li>a {
        border-bottom: 1px solid #d63900;
        background: #f40;
    }
    
    .am-menu-dropdown1 .am-menu-nav>li.am-parent.am-open>a {
        background: #e63d00;
    }
    /*按钮样式*/
    
    .am-btn-primary:hover {
        color: #fff;
        background-color: #c23400;
        border-color: #c23400;
    }
    
    .am-btn-primary {
        color: #fff;
        background-color: #f40;
        border-color: #f40;
    }
    
    .this {
        background: white;
        text-align: center;
        vertical-align: middle;
        font-size: 14px;
        padding: 15px;
        border-bottom: 1px solid #feebdc;
        border-right: 1px solid #feebdc;
    }
    
    .this i {
        color: #ff8000;
    }
    </style>
</head>

    <script type="text/javascript" src="js/appoint.js"></script>
    <style type="text/css">
    .zl span {
        float: right;
    }
    
    .bb1 {
        border-bottom: 1px solid #f1f1f1;
        margin-bottom: 5px;
    }
    
    .am-accordion-content .am-u-sm-12 label,
    .am-accordion-content .am-u-sm-12 span.show {
        line-height: 50px;
    }
    
    .am-accordion-content .am-u-sm-12 label {
        font-weight: 400;
        width: 30%;
        font-size: 16px;
        margin: 0;
    }
    
    .am-accordion-content .am-u-sm-12 span.show {
        width: 70%;
    }
    
    .zl label {
        float: left;
    }
    
    span.show.text {
        line-height: 23px !important;
        margin: 8px 0;
    }
    
    .w100 {
        width: 100% !important;
    }
    
    span.show select {
        width: 100%;
        height: 30px;
        border-color: #B2B2B2;
        border-radius: 3px;
        vertical-align: baseline;
    }
    
    span.show input {
        border-color: #B2B2B2;
        border-radius: 3px;
        height: 40px;
        margin-top: 5px;
        border: block
    }
    
    span.show input_year {}
    
    span.show.input_year select {
        width: 15%;
    }
    
    span.show.input_year select.year {
        width: 25%;
    }
    
    .w100 textarea {
        border-radius: 3px;
    }
    </style>

    <body>
        <div class="am-g am-topbar-fixed-top" style="background-image:url('/wxapp/images/topbar.png'); padding:0 0;height:45px;">
            <a href="javascript:history.back();">
                <div class="am-u-sm-3" style="margin-top:10px;text-align:left">
                    <span class="am-icon-angle-left am-icon-sm" style="color:white;"></span>
                </div>
            </a>
            <div class="am-u-sm-6" style="margin-top:10px;font-family:微软雅黑;color:white;text-align:center;">
                预约详情
            </div>
            <a href="/wap">
                <div class="am-u-sm-3" style="margin-top:11px;text-align:right">
                    <!--
		<span class="am-icon-home am-icon-sm" style="color:white;"></span>
        -->
                </div>
            </a>
        </div>
        <div class="am-g">
            <input type="hidden" value="<%=locals.datas._id%>" id="appointId">
            <div class="am-accordion-content">
                <div class="am-g zl">
                    <div class="am-u-sm-12 bb1">
                        <label>预约编号：</label>
                        <span class="show">
	      	      	<%=locals.datas.appointNo%>
      	          </span>
                    </div>
                </div>
                <div class="am-g zl">
                    <div class="am-u-sm-12 bb1">
                        <label>服务状态：</label>
                        <span class="show">
	      	      	<%=locals.datas.status%>
      	          </span>
                    </div>
                </div>
                <div class="am-g zl">
                    <div class="am-u-sm-12 bb1">
                        <label>预约时间：</label>
                        <span class="show">
	      	      	<%=locals.datas.appointTime%>
      	          </span>
                    </div>
                </div>
                <div class="am-g zl">
                    <div class="am-u-sm-12 bb1">
                        <label>完成时间：</label>
                        <span class="show">
	      	      	<%=locals.datas.oktime%>
      	          </span>
                    </div>
                </div>
                <div class="am-g zl">
                    <div class="am-u-sm-12 bb1">
                        <label>服务类别：</label>
                        <span class="show">
	      	      	<%=locals.datas.category%>
      	          </span>
                    </div>
                </div>
                <%if(locals.datas.userNo){%>
                    <div class="am-g zl">
                        <div class="am-u-sm-12 bb1">
                            <label>用户编号：</label>
                            <span class="show">
		      	      	<%=locals.datas.userNo%>
	      	          </span>
                        </div>
                    </div>
                    <%}%>
                        <%if(locals.datas.num){%>
                            <div class="am-g zl">
                                <div class="am-u-sm-12 bb1">
                                    <label>数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;量：</label>
                                    <span class="show">
		      	      	<%=locals.datas.num%>
	      	          </span>
                                </div>
                            </div>
                            <%}%>
                                <div class="am-g zl">
                                    <div class="am-u-sm-12 bb1">
                                        <label>服务商家：</label>
                                        <span class="show">
	      	      	<%=locals.datas.merchantname%>
      	          </span>
                                    </div>
                                </div>
                                <div class="am-g zl">
                                    <div class="am-u-sm-12 bb1">
                                        <label>服务说明：</label>
                                        <span class="show">
	      	      	<%=locals.datas.descripte%>
      	          </span>
                                    </div>
                                </div>
                                <div class="am-g zl">
                                    <div class="am-u-sm-12 bb1">
                                        <label>小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区：</label>
                                        <span class="show">
	      	      	<%=locals.datas.compounds%>
      	          </span>
                                    </div>
                                </div>
                                <div class="am-g zl">
                                    <div class="am-u-sm-12 bb1">
                                        <label>地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址：</label>
                                        <span class="show">
	      	      	<%=locals.datas.address%>
      	          </span>
                                    </div>
                                </div>
                                <div class="am-g zl">
                                    <div class="am-u-sm-12 bb1">
                                        <label>服务价格：</label>
                                        <span class="show">
	      	      	<%=locals.datas.rTotal||locals.datas.price%>
      	          </span>
                                    </div>
                                </div>
                                <%if(locals.datas.status=='服务完成(已支付)'){%>
                                    <div class="am-g zl">
                                        <div class="am-u-sm-12 bb1">
                                            <label>支付金额：</label>
                                            <span class="show">
		      	      	<%=locals.datas.rTotal%>
	      	          </span>
                                        </div>
                                    </div>
                                    <div class="am-g zl">
                                        <div class="am-u-sm-12 bb1">
                                            <label>支付方式：</label>
                                            <span class="show">
		      	      	<%=locals.datas.payType%>
	      	          </span>
                                        </div>
                                    </div>
                                    <div class="am-g zl">
                                        <div class="am-u-sm-12 bb1">
                                            <label>支付时间：</label>
                                            <span class="show">
		      	      	<%=locals.datas.payTime%>
	      	          </span>
                                        </div>
                                    </div>
                                    <%}else{%>
                                        <div class="am-g zl">
                                            <div class="am-u-sm-12 bb1">
                                                <label>支付方式：</label>
                                                <span class="show">
		      	      	<select id="payType">
		      	      		
		      	      	</select>
		      	      	
	      	          </span>
                                            </div>
                                        </div>
                                        <%}%>
                                            <div class="am-g zl" style="display:none;">
                                                <div class="am-u-sm-12 bb1">
                                                    <label>服务评价：</label>
                                                    <span class="show">
      	      	     <input type="text" id="satisfaction" value="<%=locals.datas.satisfaction||''%>" class="am-form-field"  placeholder="服务评价"/>
      	          </span>
                                                </div>
                                            </div>
            </div>
        </div>
        <%if(locals.datas.status=='服务完成(待支付)'){%>
            <div class="am-g am-topbar-fixed-bottom">
                <form class="am-form" id="payfrom" name="alipayment" action="/create_direct_pay_by_user" onSubmit="return dopay();" method="post" target="_blank">
                    <input type="hidden" id="ordertype" name="ordertype" value="appointe" />
                    <input size="30" id="orderNo" type="hidden" name="orderNo" value="<%=locals.datas.appointNo%>" />
                    <input size="30" id="rTotal" type="hidden" name="rTotal" value="<%=locals.datas.rTotal%>" />
                    <button type="submit" class="am-btn am-btn-warning am-btn-block">立即支付</button>
                </form>
            </div>
            <%}%>
